package com.cy.ppj.model.domian.order;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cy.ppj.model.enums.ApplyStatus;
import com.cy.ppj.model.enums.CommissionStatus;
import com.cy.ppj.model.enums.OrderRejectType;
import com.cy.ppj.model.enums.OrderStatus;
import com.cy.ppj.model.enums.RepayType;
import com.cy.ppj.model.enums.OrderWithholdStatus;

import lombok.Data;

/**
 * @description: 订单
 * @author: tanyilin
 * @create: 2018年7月20日 下午7:26:44
 */
@Data
@Table(name = "t_order")
public class Order {

	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

	/** 客户ID */
	private Long customerId;
	
	/** 产品ID */
	private Long productId;
	
	/** 所属城市ID */
    private Long cityId;
	
	/** 客户手机号码 */
	private String mobile;
	
	/** 借款期限 */
	private Integer periods;
	
	/** 贷款金额 */
	private BigDecimal loanAmount;
	
	/** 利率 */
	private BigDecimal rate;
	
	/** 还款方式 */
	private RepayType repayType;
	
	/** 订单审核状态 */
	private OrderStatus orderStatus;
	
	/** 订单申请状态 */
	private ApplyStatus applyStatus;
    
	/** 用户ID */
	private Long userId;
	
	/** 佣金发放状态 */
	private CommissionStatus commissionStatus;
	
	/** 代扣状态 */
	private OrderWithholdStatus withholdStatus;
	
    /** 创建时间 */
    private Date createTime;

	/** 更新时间 */
	private Date updateTime;

	/** 放款时间 */
	private Date loanTime;
	
	/** 拒绝类型 */
	private OrderRejectType rejectType;
	
	/** 拒绝原因 */
	private String rejectReason;
	
}
